

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 6.00.0366 */
/* at Mon Sep 17 20:13:16 2012
 */
/* Compiler settings for .\LuaScriptHost.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __LuaScriptHost_h__
#define __LuaScriptHost_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __ICScriptEngine_FWD_DEFINED__
#define __ICScriptEngine_FWD_DEFINED__
typedef interface ICScriptEngine ICScriptEngine;
#endif 	/* __ICScriptEngine_FWD_DEFINED__ */


#ifndef __CScriptEngine_FWD_DEFINED__
#define __CScriptEngine_FWD_DEFINED__

#ifdef __cplusplus
typedef class CScriptEngine CScriptEngine;
#else
typedef struct CScriptEngine CScriptEngine;
#endif /* __cplusplus */

#endif 	/* __CScriptEngine_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"
#include "dispex.h"

#ifdef __cplusplus
extern "C"{
#endif 

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * ); 

#ifndef __ICScriptEngine_INTERFACE_DEFINED__
#define __ICScriptEngine_INTERFACE_DEFINED__

/* interface ICScriptEngine */
/* [unique][helpstring][uuid][object] */ 


EXTERN_C const IID IID_ICScriptEngine;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("EBF3248A-6860-4CAF-AC9E-7A1E304805B0")
    ICScriptEngine : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Open( 
            /* [in] */ IStorage *pstg) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Close( void) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddAPIItem( 
            /* [in] */ LPCOLESTR pszName,
            IDispatchEx *pdispex) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Execute( 
            /* [in] */ LPCOLESTR pszScriptName,
            /* [in] */ LPCOLESTR pszCommandLine) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct ICScriptEngineVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ICScriptEngine * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ICScriptEngine * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ICScriptEngine * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Open )( 
            ICScriptEngine * This,
            /* [in] */ IStorage *pstg);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Close )( 
            ICScriptEngine * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddAPIItem )( 
            ICScriptEngine * This,
            /* [in] */ LPCOLESTR pszName,
            IDispatchEx *pdispex);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Execute )( 
            ICScriptEngine * This,
            /* [in] */ LPCOLESTR pszScriptName,
            /* [in] */ LPCOLESTR pszCommandLine);
        
        END_INTERFACE
    } ICScriptEngineVtbl;

    interface ICScriptEngine
    {
        CONST_VTBL struct ICScriptEngineVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ICScriptEngine_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define ICScriptEngine_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define ICScriptEngine_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define ICScriptEngine_Open(This,pstg)	\
    (This)->lpVtbl -> Open(This,pstg)

#define ICScriptEngine_Close(This)	\
    (This)->lpVtbl -> Close(This)

#define ICScriptEngine_AddAPIItem(This,pszName,pdispex)	\
    (This)->lpVtbl -> AddAPIItem(This,pszName,pdispex)

#define ICScriptEngine_Execute(This,pszScriptName,pszCommandLine)	\
    (This)->lpVtbl -> Execute(This,pszScriptName,pszCommandLine)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring] */ HRESULT STDMETHODCALLTYPE ICScriptEngine_Open_Proxy( 
    ICScriptEngine * This,
    /* [in] */ IStorage *pstg);


void __RPC_STUB ICScriptEngine_Open_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring] */ HRESULT STDMETHODCALLTYPE ICScriptEngine_Close_Proxy( 
    ICScriptEngine * This);


void __RPC_STUB ICScriptEngine_Close_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring] */ HRESULT STDMETHODCALLTYPE ICScriptEngine_AddAPIItem_Proxy( 
    ICScriptEngine * This,
    /* [in] */ LPCOLESTR pszName,
    IDispatchEx *pdispex);


void __RPC_STUB ICScriptEngine_AddAPIItem_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring] */ HRESULT STDMETHODCALLTYPE ICScriptEngine_Execute_Proxy( 
    ICScriptEngine * This,
    /* [in] */ LPCOLESTR pszScriptName,
    /* [in] */ LPCOLESTR pszCommandLine);


void __RPC_STUB ICScriptEngine_Execute_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __ICScriptEngine_INTERFACE_DEFINED__ */



#ifndef __LuaScriptHostLib_LIBRARY_DEFINED__
#define __LuaScriptHostLib_LIBRARY_DEFINED__

/* library LuaScriptHostLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_LuaScriptHostLib;

EXTERN_C const CLSID CLSID_CScriptEngine;

#ifdef __cplusplus

class DECLSPEC_UUID("8F6B638C-FFC3-4B35-8BE2-05383F323D58")
CScriptEngine;
#endif
#endif /* __LuaScriptHostLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


